﻿<%@ Page Title="" Language="C#" MasterPageFile="~/studentUser/Student.Master" AutoEventWireup="true" CodeBehind="RepaireReport.aspx.cs" Inherits="WebApplication1.student.RepaireReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div style="border-radius: 15px;
    background-color: #fff;
    position: relative;
    width: 84%;
    height: 100%;
    margin-top:30px;
    margin-left: 200px;
    box-shadow: 0px 1px 3px 0px rgba(119,119,119,0.99);">
        <div style="border-radius: 15px;
            position: relative;
            margin-top:15px;
            margin-right:50px;
            float:right;">
            <asp:Button ID="repair" runat="server" Text="维修上报"  BackColor="green" ForeColor="White" Font-Size="15px" Height="37px" Width="82px" OnClick="repair_Click"/>
        </div>
         <asp:GridView ID="GridView1" PageSize="7" runat="server" CellSpacing="10" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1"  AllowPaging="True" AllowSorting="True"  CellPadding="4" ForeColor="#333333" GridLines="None" HorizontalAlign="Center" Width="100%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
             <AlternatingRowStyle BackColor="White" />
             <Columns>
                 <asp:BoundField DataField="id" HeaderText="序号" InsertVisible="False" ReadOnly="True" ItemStyle-HorizontalAlign="Center" SortExpression="id" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                 </asp:BoundField>
                 <asp:BoundField DataField="address" HeaderText="维修地址" ItemStyle-HorizontalAlign="Center" SortExpression="address" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                 </asp:BoundField>
                 <asp:BoundField DataField="message" HeaderText="维修信息" ItemStyle-HorizontalAlign="Center" SortExpression="message" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                 </asp:BoundField>
                 <asp:BoundField DataField="phone" HeaderText="电话" ItemStyle-HorizontalAlign="Center" SortExpression="phone" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                 </asp:BoundField>
                 <asp:BoundField DataField="reporttime" HeaderText="上报时间" ItemStyle-HorizontalAlign="Center" SortExpression="reporttime" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                 </asp:BoundField>
                 <asp:BoundField DataField="name" HeaderText="上报人" ItemStyle-HorizontalAlign="Center"  SortExpression="name" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                 </asp:BoundField>
                 <asp:TemplateField HeaderText="维修状态" ItemStyle-HorizontalAlign="Center" SortExpression="state">
                     <EditItemTemplate>
                         <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("state") %>'></asp:TextBox>
                     </EditItemTemplate>
                     <ItemTemplate>
                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("state") %>'></asp:Label>
                     </ItemTemplate>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                 </asp:TemplateField>
             </Columns>
             <EditRowStyle BackColor="#2461BF" />
             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
             <RowStyle BackColor="#EFF3FB" />
             <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
             <SortedAscendingCellStyle BackColor="#F5F7FB" />
             <SortedAscendingHeaderStyle BackColor="#6D95E1" />
             <SortedDescendingCellStyle BackColor="#E9EBEF" />
             <SortedDescendingHeaderStyle BackColor="#4870BE" />
         </asp:GridView>
         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dmsConnectionString %>" ProviderName="<%$ ConnectionStrings:dmsConnectionString.ProviderName %>" SelectCommand="select id,address,message,phone,reporttime,name,state from dormitory_maintenance"></asp:SqlDataSource>
              
        </div>
    <asp:Panel ID="Panel1" runat="server" Width="600px" Height="300px">
     <div style="border-radius: 15px;
    background-color: #fff;
    position:relative;
    width: 600px;
    top:-500px;
    height: 300px;
    margin-left: 600px;
    box-shadow: 0px 1px 3px 0px rgba(119,119,119,0.99);">
     <table class="auto-style4" style=" margin: 0 auto;font-size:large;position: relative;top:15px">
        <tr>
            <td colspan="2" align="center" style="font-size:x-large"">维修上报</td>
        </tr>
         <tr>
            <td class="auto-style5" style="width:100px" align="right">上报人：</td>
            <td>
                <asp:TextBox ID="name" runat="server" Height="25px" Width="323px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name" ErrorMessage="上报人不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">维修地址：</td>
            <td>
                <asp:TextBox ID="address" runat="server" Height="25px" Width="324px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="address" ErrorMessage="维修地址不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">手机号：</td>
            <td>
                <asp:TextBox ID="phonenumber" runat="server" MaxLength="11" TextMode="Phone" Height="25px" Width="326px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" BorderStyle="None" ControlToValidate="phonenumber" ErrorMessage="手机号不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">维修信息：</td>
            <td>
                <asp:TextBox ID="message" runat="server" BorderStyle="Solid" Height="74px" TextMode="MultiLine" Width="480px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="message" ErrorMessage="维修信息不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" colspan="2" align="center">
                <asp:Button ID="submit" runat="server" OnClick="submit_Click" Text="提交" />&nbsp&nbsp&nbsp&nbsp
                <asp:Button ID="cacel" runat="server" OnClick="cancel_Click" CausesValidation="false" Text="取消" />
            </td>
        </tr>
    </table>
        </div>
         </asp:Panel>
</asp:Content>
